package cn.tm.liu.mode.command.demo1;

/**
 * @author Marvin.L
 * @description
 * @date 2022.04.09 14.13
 */
public class BuyStock implements Order {
    private Stock stock;

    public BuyStock(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.buy();
    }
}
